/*
 * @Description:
 * @Version: 1.0
 * @Autor: yel
 * @Date: 2022-03-10 11:40:05
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2022-10-13 12:23:23
 */
// 定义设计稿的宽高
import { useFitStore } from '@/stores/fit';
const fitStore = useFitStore();

export const fitWidth = (size: number) => (size / fitStore.designWidth) * fitStore.screenW;
export const fitHeight = (size: number) => (size / fitStore.designHeight) * fitStore.screenH;
